//
//  LiveItem.swift
//  InkeLiveMac
//
//  Created by Mac on 2021/7/28.
//

import Cocoa
import Kingfisher

class LiveItem: NSCollectionViewItem {

    @IBOutlet weak var portraitImageView: NSImageView!
    override func viewDidLoad() {
        super.viewDidLoad()
    }
    
    var _model : InkeResponseModelData!
    public var model : InkeResponseModelData!{
        set{
            _model = newValue
            //设置数据
            portraitImageView.kf.setImage(with: URL(string: newValue.live_info.creator.portrait))
        }
        get{
            return _model
        }
    }
    
}
